package py.com.fms.com.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import py.com.fms.fms.bean.CurrencyBean;
import py.com.fms.fms.bean.RefDetBean;
import py.com.fms.fms.bean.SupplierBean;

public class OrderHeadBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8334127236735000606L;
	private Long id;
	private Long idEnt;
	private Long orderNumber;
	private Long idSupplier;
	private Long buyType;
	private Date orderDate;
	private Date lastUpdDate;
	private Date deliveryDate;
	private Long buyCondition;
	private Long costCenter;
	private Long currency;
	private Double changeType;
	private BigDecimal orderTotal;
	private BigDecimal discount;
	private Long userIns;
	private String status;
	private BuyConditionBean buyConditionData;
	private RefDetBean buyTypeData;
	private RefDetBean costCenterData;
	private SupplierBean supplierData;
	private CurrencyBean currencyData;
	private Long cancellationReason;
	private RefDetBean cancellationReasonData;
	private Boolean selected;
	
	
	public boolean equals(Object obj) {
		if (!(obj instanceof OrderHeadBean)) {
		return false;
		}
		OrderHeadBean bean = (OrderHeadBean) obj;

		return (this.id.equals(bean.id));

		}
	
	// ACCESORS AND MUTATORS
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}

	public Long getIdSupplier() {
		return idSupplier;
	}
	public Long getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(Long orderNumber) {
		this.orderNumber = orderNumber;
	}
	public Long getBuyType() {
		return buyType;
	}
	public void setBuyType(Long buyType) {
		this.buyType = buyType;
	}
	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	
	public Date getLastUpdDate() {
		return lastUpdDate;
	}
	public void setLastUpdDate(Date lastUpdDate) {
		this.lastUpdDate = lastUpdDate;
	}
	public Long getBuyCondition() {
		return buyCondition;
	}
	public void setBuyCondition(Long buyCondition) {
		this.buyCondition = buyCondition;
	}
	public Long getCostCenter() {
		return costCenter;
	}
	public void setCostCenter(Long costCenter) {
		this.costCenter = costCenter;
	}
	public Long getCurrency() {
		return currency;
	}
	public void setCurrency(Long currency) {
		this.currency = currency;
	}
	
	public BigDecimal getOrderTotal() {
		return orderTotal;
	}
	public void setOrderTotal(BigDecimal orderTotal) {
		this.orderTotal = orderTotal;
	}
	public Long getUserIns() {
		return userIns;
	}
	public void setUserIns(Long userIns) {
		this.userIns = userIns;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getDiscount() {
		return discount;
	}
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	public BuyConditionBean getBuyConditionData() {
		return buyConditionData;
	}
	public void setBuyConditionData(BuyConditionBean buyCondition) {
		this.buyConditionData = buyCondition;
	}
	public Date getDeliveryDate() {
		return deliveryDate;
	}
	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	public Long getIdEnt() {
		return idEnt;
	}
	public void setIdEnt(Long idEnt) {
		this.idEnt = idEnt;
	}
	public RefDetBean getBuyTypeData() {
		return buyTypeData;
	}
	public void setBuyTypeData(RefDetBean buyTypeData) {
		this.buyTypeData = buyTypeData;
	}
	public RefDetBean getCostCenterData() {
		return costCenterData;
	}
	public void setCostCenterData(RefDetBean costCenterData) {
		this.costCenterData = costCenterData;
	}
	public Double getChangeType() {
		return changeType;
	}
	public void setChangeType(Double changeType) {
		this.changeType = changeType;
	}
	public void setIdSupplier(Long idSupplier) {
		this.idSupplier = idSupplier;
	}
	public SupplierBean getSupplierData() {
		return supplierData;
	}
	public void setSupplierData(SupplierBean supplierData) {
		this.supplierData = supplierData;
	}
	public CurrencyBean getCurrencyData() {
		return currencyData;
	}
	public void setCurrencyData(CurrencyBean currencyData) {
		this.currencyData = currencyData;
	}
	public Long getCancellationReason() {
		return cancellationReason;
	}

	public void setCancellationReason(Long cancellationReason) {
		this.cancellationReason = cancellationReason;
	}

	public RefDetBean getCancellationReasonData() {
		return cancellationReasonData;
	}

	public void setCancellationReasonData(RefDetBean cancellationReasonData) {
		this.cancellationReasonData = cancellationReasonData;
	}

	public void setSelected(Boolean selected) {
		this.selected = selected;
	}
	public Boolean getSelected() {
		return selected;
	}	

}
